<?php
class DBHelper {
	protected  $_host = 'localhost';
	protected $_dbname = 'qlbus';
	protected $_user = 'root';
	protected $_pass = '';
	/**
	 * 
	 * @var PDO
	 */
	public $_db;
	
	public function __construct() {
		$this->init();
	}
	public function init() {
		$this->db = new PDO ( 'mysql:host='.$this->_host.';dbname=' . $this->_dbname, $this->_user, $this->_pass );
		$this->db->setAttribute ( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
	}
}
?>